#pragma once
//#include "Define.h"
#include "GeneralTest.h"
#include "MaoGanTest.h"
#include "ShuiPingTest.h"
#include "ZiPingHeng.h"

class CDrawCurveFactory
{
public:
	
	CDrawCurve * GetDrawCruveObject(DATA_TYPE dataType)
	{
		switch (dataType)
		{
		case DATA_0:
			return CGeneralTest::GetInstance();
			break;
		case DATA_1:
			return CMaoGanTest::GetInstance();
			break;
		case DATA_2:
			return CShuiPingTest::GetInstance();
			break;
		case DATA_3:
			return CZiPingHeng::GetInstance();
			break;
		default:
			break;
		}
		return nullptr;
	}
};


// namespace DrawCurveFactory
// {
// 	CDrawCurve * GetDrawCruveObject(DATA_TYPE dataType)
// 	{
// 		CDrawCurve *m_pDraw = nullptr;
// 		switch (dataType)
// 		{
// 		case DATA_0:
// 			m_pDraw = CGeneralTest::GetInstance();
// 			break;
// 		case DATA_1:
// 			m_pDraw = CMaoGanTest::GetInstance();
// 			break;
// 		case DATA_2:
// 			m_pDraw = CShuiPingTest::GetInstance();
// 			break;
// 		case DATA_3:
// 			m_pDraw = CZiPingHeng::GetInstance();
// 			break;
// 		default:
// 			break;
// 		}
// 		return m_pDraw;
// 	}
// }
